package com.sogeti.mentormatch.command
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.sogeti.mentormatch.model.MentorModelLocator;
	import com.sogeti.mentormatch.vo.UserVO;
	
	import mx.collections.ArrayCollection;
	import mx.rpc.IResponder;

	public class RetrieveAllMentorsCommand implements ICommand, IResponder
	{
		private var model:MentorModelLocator : MentorModelLocator.getInstance();
		
		public function execute(event:CairngormEvent):void
		{
			result(event);
		}
		
		public function result(data:Object):void
		{
			var aC :ArrayCollection = new ArrayCollection();
			var mentor1: UserVO = new UserVO();
			mentor1.FIRSTNAME = "Jeremy"
			mentor1.LASTNAME = "Sanders"
			mentor1.IS_MENTOR = true;
			aC.addItem(mentor1);
			
			model.mentorArray = aC;
			
		}
		
		public function fault(info:Object):void
		{
		}
		
	}
}